import _fetch from '@/api/request.js'

//请求手机短信验证码api
function getPhoneCodeApi(data) {
    return _fetch({
        url: "/sendsms",
        method: "post",
        withCredentials: true,
        data: data,
    })
}

// 注册api
function registerUserApi(data) {
    return _fetch({
        url: '/register',
        method: 'post',
        data //data:data
    })
}

export { getPhoneCodeApi, registerUserApi }

